package io.bdmc.modules.bss.service;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.FibreCablePoint;
import io.bdmc.modules.bss.entity.FibreFibre;
import io.bdmc.modules.bss.model.LabelValue;

/**
 * <p>
 * 光缆 服务类
 * </p>
 *
 * @author ping
 * @since 2020-07-02
 */
public interface IFibreFibreService extends IService<FibreFibre> {

    MyPage<FibreFibre> mySelectPage(MyPage<FibreFibre> myPage);

    List<HashMap<String, Object>> ztree(int deptId);

    Boolean removeFibreAndPoints(int fibreId);

    Boolean insertFibreAndPoints(FibreFibre fibre, List<FibreCablePoint> points);

    List<LabelValue> combo(int deptId);

    List<FibreFibre> listByDeptId(int deptId);

    HashMap<String, Object> fibreLengthSum(Long deptId);
}
